/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package ids.dl;

/**
 *
 * @author Chartha Senarathne
 */
public class HeartBeatData {
    
    private IServer server;
    
    private int CIHBCount;

    public HeartBeatData(IServer server)
    {
        this.server = server;
        this.CIHBCount = 0;
    }
    
    /**
     * @return the server
     */
    public IServer getServer() {
        return server;
    }

    /**
     * @param server the server to set
     */
    public void setServer(Server server) {
        this.server = server;
    }

    /**
     * @return the CIHBCount
     */
    public int getCIHBCount() {
        return CIHBCount;
    }

    /**
     * @param CIHBCount the CIHBCount to set
     */
    public void setCIHBCount(int CIHBCount) {
        this.CIHBCount = CIHBCount;
    }
    
    public void incCIHBCount()
    {
        this.CIHBCount++;
    }
    
    public void resetCIHBCount()
    {
        this.CIHBCount = 0;
    }
    
}
